import {get,post} from "@/config/ApiUtil";

const menuTreeAllUrl: string = '/menu/tree/all';
const menuAddUrl: string = '/menu/add';

/**
 * menuAddApi - 添加菜单
 * @author lsc
 * @date 2024/3/31 17:06
 */
export function menuAddApi(data: any) {
    return post(menuAddUrl, data);
}

/**
 * menuTreeAllApi - 获取所有菜单树
 * @author lsc
 * @date 2024/3/31 17:06
 */
export function menuTreeAllApi() {
    return get(menuTreeAllUrl, null);
}
